﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

// 基类定义
namespace Library
{
    public abstract class BaseUserSystem : CommonService
    {
        public virtual void AddUserMenu(int role = RoleConstants.USER) { }

        public virtual void DeleteUserMenu() { }

        public virtual void ChangePasswordMenu() { }

        public virtual void ResetPasswordMenu() { }

        protected abstract void ChangePassword(User user, string password);

        protected abstract void DeleteUser(string username);

        protected abstract void ResetPassword(string username);

        protected abstract void AddUser(string username, string password, int role);
    }
}
